/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.optimus.app;

import java.net.URL;
import java.util.Date;
import org.apache.log4j.xml.DOMConfigurator;

/**
 *
 * @author vperez
 */
public class Application {
    private static Application instance = null;
    public static Application instance() throws Exception {
        return instance == null ? new Application() : instance;
    }
    private Application(){
        instance=this;
    }
    public void configureLog4j(URL archivo){
        DOMConfigurator.configure(archivo);
    }
    
    public static Long getTicket(){
        Date date = new Date();
        return date.getTime();
    }

}
